package userBean;

/**
 *
 * @author Sam
 */
public class RegisteredCustomer extends UserIdentity {
    
    private String name;
    private String id;
    private int loyaltyPoint;
    private PurchaseRecord purchaseRecord[];

    public RegisteredCustomer() {
        this.setUserType("RegisteredCustomer");
    }
    
//    public RegisteredCustomer(String id, String name, int loyaltyPoint, PurchaseRecord[] purchaseRecord) {
//        super("RegisteredCustomer");
//        setId(id);
//        setName(name);
//        setLoyaltyPoint(loyaltyPoint);
//    }

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getLoyaltyPoint() {
        return this.loyaltyPoint;
    }

    public void setLoyaltyPoint(int loyaltyPoint) {
        this.loyaltyPoint = loyaltyPoint;
    }

    public void setPurchaseRecord(PurchaseRecord[] purchaseRecord) {
        this.purchaseRecord = purchaseRecord;
    }

    public PurchaseRecord[] getPurchaseRecord() {
        return this.purchaseRecord;
    }
}
